package com.gator.desig_mode.mediator;



/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class Client {

  public static void main(String[] args) {
    ConcreteMediator concreteMediator = new ConcreteMediator();

    Alarm alarm = new Alarm(concreteMediator, "alarm");
    TV tv = new TV(concreteMediator, "tv");

    alarm.sendMessage("闹钟响了");


  }
}
